<%@page import="com.libweb.model.dao.BookDao"%>
<%@page import="com.libweb.model.dto.Book"%>
<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>

<%
	Book book = (Book)request.getAttribute("book");
%>
	
<!DOCTYPE html>


<html>
<head>
	<meta charset="utf-8" />
	<title>도서 정보 수정</title>
	<link rel="Stylesheet" href="/libweb/styles/default.css" />
	<link rel="Stylesheet" href="/libweb/styles/input2.css" />	
</head>
<body>
	<div id="pageContainer">
	
		<% pageContext.include("/WEB-INF/views/include/header.jsp"); %>
		
		<div style="padding-top:25px;text-align:center">
			<div id="inputcontent">
			    <div id="inputmain">
			        <div class="inputsubtitle">도서 정보 수정</div>
			        <form action="update.action" method="post">
				        <table>
				            <tr>
				                <th>도서 번호</th>
				                <td>
				                	<%= book.getBookNo() %>
				                	<input type="hidden" name="bookno"
				                	value="<%= book.getBookNo() %>" />				                					                	
				                </td>
				            </tr>
				            <tr>
				                <th>제목</th>
				                <td>
				                	<input type="text" name="title" style="width:550px"
				                		value="<%= book.getTitle() %>" />
				                </td>
				            </tr>
				            <tr>
				                <th>출판사</th>
				                <td>
				                	<input type="text" name="publisher" style="width:550px"
				                		value="<%= book.getPublisher() %>" />
				                <td/>
				            </tr>
				            <tr>
				                <th>저자</th>
				                <td>				              
				                	<input type="text" name="author" style="width:550px"
				                		value="<%= book.getAuthor() %>" />
				                <td/>
				            </tr>
				            <tr>
				                <th>출간일(YYYYMMDD)</th>
				                <td>
					                <input type="text" name="pubdate" style="width:550px"
				                		value="<%= book.getPubDate().toString() %>" />
				                </td>
				            </tr>							
				        </table>
			        </form>
			        <div class="buttons">
			        	<!--  <input type="submit" value="수정" /> -->
			        	<a href="javascript:document.forms[0].submit();">수정</a>
			        	&nbsp;
			        	<a href="javascript:history.back();">취소</a>
			        </div>
			    </div>
			</div>   	
		
		</div>
	</div>

</body>
</html>